package array;

/**
 * @author Administrator
 */
public class Arr {
    public static void main(String[] args) {
        Array<Integer> array = new Array();
        for (int i = 0; i < 12; i++) {
            array.addLast(i);
        }
        System.out.println(array);

        array.add(2,66);
        System.out.println(array);

        array.addFirst(-1);
        System.out.println(array);

        array.remove(0);
        System.out.println(array);

        array.removeFirst();
        System.out.println(array);

        array.removeLast();
        System.out.println(array);

        array.removeElement(66);
        System.out.println(array);
    }
}
